let mainParams = {
  // 路由
  routes: [
    {
      path: "/",
      name: "home",
      meta: { name: "首页" },
      icon:'el-icon-menu',
      tag:true,
      redirect: "/index",
      component: () => import("@/views/home/index"),
      children: [
        {
          path: "/index",
          name: "index",
          meta: { name: "首页" },
          icon:'el-icon-menu',
          component: () => import("@/views/home/index/index"),
        },
        {
          path: "/statistics",
          name: "statistics",
          meta: { name: "数据管理" },
          icon:'el-icon-s-grid',
          component: () => import("@/views/home/statistics/index"),
        },
        {
          path: "/info",
          name: "info",
          meta: { name: "信息管理" },
          icon:'el-icon-s-tools',
          redirect: "/info/infolist",
          component: () => import("@/views/home/info/index"),
          children: [
            {
              path: "/info/infolist",
              name: "infolist",
              meta: { name: "信息列表" },
              icon:'el-icon-document',
              component: () => import("@/views/home/info/InfoList"),
            },
          ],
        },
        {
          path: "/user",
          name: "user",
          meta: { name: "用户信息" },
          icon:'el-icon-user',
          component: () => import("@/views/home/user/index"),
          children: [
            {
              path: "/user/role",
              name: "role",
              meta: { name: "用户角色" },
              icon:'el-icon-user-solid',
              component: () => import("@/views/home/user/role"),
            },
            {
              path: "/user/userlist",
              name: "userlist",
              meta: { name: "用户列表" },
              icon:'el-icon-s-custom',
              component: () => import("@/views/home/user/UserList"),
            },
          ],
        },
      ],
    },
    {
      path: "/login",
      name: "login",
      meta: { name: "登录" },
      component: () => import("@/views/login/index"),
    },
    {
      path: "/:catchAll(.*)",
      redirect: "/index",
    },
  ],
};

export default mainParams;
